class ItemTypeEntity {
  int? total;
  List<ItemTypeInfo>? rows;

  ItemTypeEntity({this.total, this.rows});

  ItemTypeEntity.fromJson(Map<String, dynamic> json) {
    total = json['total'];

    rows = ((json['rows'] as List?)??[]).map((e) => ItemTypeInfo.fromJson(e)).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['total'] = this.total;
    if (this.rows != null) {
      data['rows'] = this.rows?.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class ItemTypeInfo {
  String? name;
  int? bizType;
  int? sort;
  int? status;
  String? remark;
  int? branchId;
  int? tenantId;
  int? saasId;
  int? id;
  String? createdBy;
  String? createdDate;
  String? updatedBy;
  String? updatedDate;

  ItemTypeInfo(
      {this.name,
      this.bizType,
      this.sort,
      this.status,
      this.remark,
      this.branchId,
      this.tenantId,
      this.saasId,
      this.id,
      this.createdBy,
      this.createdDate,
      this.updatedBy,
      this.updatedDate});

  ItemTypeInfo.fromJson(Map<String, dynamic> json) {
    name = json['name'];
    bizType = json['bizType'];
    sort = json['sort'];
    status = json['status'];
    remark = json['remark'];
    branchId = json['branchId'];
    tenantId = json['tenantId'];
    saasId = json['saasId'];
    id = json['id'];
    createdBy = json['createdBy'];
    createdDate = json['createdDate'];
    updatedBy = json['updatedBy'];
    updatedDate = json['updatedDate'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['name'] = this.name;
    data['bizType'] = this.bizType;
    data['sort'] = this.sort;
    data['status'] = this.status;
    data['remark'] = this.remark;
    data['branchId'] = this.branchId;
    data['tenantId'] = this.tenantId;
    data['saasId'] = this.saasId;
    data['id'] = this.id;
    data['createdBy'] = this.createdBy;
    data['createdDate'] = this.createdDate;
    data['updatedBy'] = this.updatedBy;
    data['updatedDate'] = this.updatedDate;
    return data;
  }
}